GdPicture.NET.14
GdPicture14.WPF Namespace / ThumbnailEx Class / LoadFromDirectory Method / LoadFromDirectory(String,Boolean,String[]) Method
The path from which thumbnails will be generated.
Set to True to include sub folders else False.
An array of search strings to match against the names of files in path. IE: "*.tif" The parameter cannot end in two periods ("..") or contain two periods ("..") followed by DirectorySeparatorChar or AltDirectorySeparatorChar, nor can it contain any of the characters in InvalidPathChars. Wildcard character: - * Zero or more characters. - ? Exactly one character.





In This Topic
LoadFromDirectory(String,Boolean,String[]) Method
In This Topic
Load thumbnails from directory. The ThumbnailEx control will generate a thumbnail for each image or PDF document found in the directory. Thumbnails will be generated asynchronously.
Syntax
'Declaration
 
Public Overloads Function LoadFromDirectory( _
   ByVal Path As String, _
   ByVal IncludeSubFolders As Boolean, _
   ByVal SearchPatterns() As String _
) As GdPictureStatus
public GdPictureStatus LoadFromDirectory( 
   string Path,
   bool IncludeSubFolders,
   string[] SearchPatterns
)
public function LoadFromDirectory( 
    Path: String;
    IncludeSubFolders: Boolean;
    SearchPatterns: Stringarray of
): GdPictureStatus; 
public function LoadFromDirectory( 
   Path : String,
   IncludeSubFolders : boolean,
   SearchPatterns : String[]
) : GdPictureStatus;
public: GdPictureStatus LoadFromDirectory( 
   string* Path,
   bool IncludeSubFolders,
   string*[]* SearchPatterns
) 
public:
GdPictureStatus LoadFromDirectory( 
   String^ Path,
   bool IncludeSubFolders,
   array<String^>^ SearchPatterns
) 

Parameters

Path
The path from which thumbnails will be generated.
IncludeSubFolders
Set to True to include sub folders else False.
SearchPatterns
An array of search strings to match against the names of files in path. IE: "*.tif" The parameter cannot end in two periods ("..") or contain two periods ("..") followed by DirectorySeparatorChar or AltDirectorySeparatorChar, nor can it contain any of the characters in InvalidPathChars. Wildcard character: - * Zero or more characters. - ? Exactly one character.

Return Value

A member of the GdPictureStatus enumeration.
See Also